<%@ Page Language="C#" MasterPageFile="~/SurveyHost.Master" AutoEventWireup="true"
    CodeBehind="Survey.aspx.cs" Inherits="SurveyHost.Web.Participant.Survey" Title="Survey Host" %>

<%@ Register Assembly="SurveyHost.Core" Namespace="SurveyHost.Core.Controls" TagPrefix="shc" %>
<%@ Register Src="~/Controls/Paragraph.ascx" TagName="Paragraph" TagPrefix="cms" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Panel ID="InstructionPanel" runat="server" Visible='<%# ShowInstructions %>'>
        <div class="post">
            <h1 class="title">
                <cms:Paragraph ID="title" runat="server" ContentName="Survey_title" />
            </h1>
            <p class="byline">
                <cms:Paragraph ID="byline" runat="server" ContentName="Survey_byline" />
            </p>
            <div class="entry">
                <%= MeasureInstructions %>
            </div>
        </div>
    </asp:Panel>
    <div class="questionList">
        <shc:QuestionList ID="QuestionList1" runat="server" PerformSecondChanceValidation='<%# !SurveyHost.Core.StatusHelper.UserIsAdmin() %>'></shc:QuestionList>
        <div style="text-align: right; margin: 16px;">
            &nbsp;<asp:Button runat="server" ID="submit" OnClick="SubmitClick" Text="Submit"
                ValidationGroup="QuestionValidationGroup" /></div>
    </div>
</asp:Content>
